import 'package:json_annotation/json_annotation.dart';

part 'telephone.g.dart';

@JsonSerializable()
class TelephonePayModel {
  bool checked;

  int price;

  double sellPrice;

  TelephonePayModel({ this.checked = false,  required this.price, required this.sellPrice });

  factory TelephonePayModel.fromJson(Map<String, dynamic> json) => _$TelephonePayModelFromJson(json);

  Map<String, dynamic> toJson() => _$TelephonePayModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}